﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace RLProject1.Model.AMEEWorld
{
    /// <summary>
    /// 
    /// </summary>
    class Abschnitt
    {
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>
        /// The ID.
        /// </value>
        public int ID { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public String Name { 
            get {
                if (_name == null)
                    return "";
                return _name;
            }
           set {_name = value;}
        }
        string _name;

        /// <summary>
        /// Gets or sets the sektor.
        /// </summary>
        /// <value>
        /// The sektor.
        /// </value>
        public Sektor Sektor { get; set; }

        /// <summary>
        /// Gets or sets the spur.
        /// </summary>
        /// <value>
        /// The spur.
        /// </value>
        public Spur Spur { get; set; }

        /// <summary>
        /// Gets or sets the unebenheitsmass.
        /// </summary>
        /// <value>
        /// The unebenheitsmass.
        /// </value>
        public double Unebenheitsmass { get; set; }


        /// <summary>
        /// Initializes a new instance of the <see cref="Abschnitt"/> class.
        /// </summary>
        public Abschnitt() {

        }

        /// <summary>
        /// Returns a <see cref="System.String" /> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String" /> that represents this instance.
        /// </returns>
        public override string ToString() {
            return "Abschnitt "+Name;
        }
    }
}
